package com.youdoneed.news.news.dao;

import org.apache.ibatis.annotations.Mapper;

import com.youdoneed.news.news.entity.CmfAuthorWeight;
import com.youdoneed.news.news.entity.CmfAuthorWeightWithBLOBs;

@Mapper
public interface CmfAuthorWeightMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CmfAuthorWeightWithBLOBs record);

    int insertSelective(CmfAuthorWeightWithBLOBs record);

    CmfAuthorWeightWithBLOBs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CmfAuthorWeightWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(CmfAuthorWeightWithBLOBs record);

    int updateByPrimaryKey(CmfAuthorWeight record);
    /**
     * 根据用户获取权值记录
     * @param userId
     * @return
     */
    CmfAuthorWeightWithBLOBs getRecordByUserId(String userId);
}